package com.tsd.jxc.stock.dao;

import com.tsd.common.vo.BatchDeleteLogicVo;
import com.tsd.core.vo.PageBean;
import com.tsd.jxc.stock.entity.JxcStockWarehouse;
import com.tsd.jxc.stock.entity.JxcStockWarehouseExt;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 描述：JxcStockWarehouseMapper
 *
 * @author Hillpool
 * @date 2022/07/29 15:06:41
 */
public interface JxcStockWarehouseMapper {

    JxcStockWarehouse selectByPrimaryKey(Long id);

    JxcStockWarehouseExt selectBySid(String sid);

    int deleteByPrimaryKey(Long id);

    int insert(JxcStockWarehouse record);

    int insertSelective(JxcStockWarehouse record);

    int updateByPrimaryKey(JxcStockWarehouse record);

    int updateByPrimaryKeySelective(JxcStockWarehouse record);

    List<JxcStockWarehouseExt> selectByEntity(JxcStockWarehouseExt record);

    List<JxcStockWarehouseExt> selectByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<JxcStockWarehouseExt> selectCount1Page(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<JxcStockWarehouseExt> selectByParams(@Param("params") Map<String, Object> params);

    List<JxcStockWarehouseExt> validateRepeatJxcStockWarehouses(JxcStockWarehouse record);

    int updatePositionNum(@Param("sid_list") List<String> sid_list);

    int deleteLogicBySidList(BatchDeleteLogicVo logicVo);

    int countValid();
}